package qingke.struts.example.action;

import com.opensymphony.xwork2.Action;

import qingke.struts.example.model.Message;

public class HelloInterfaceAction implements Action {
	
	private String word;
	private Message message;

	public String getWord() {
		return word;
	}

	public void setWord(String word) {
		this.word = word;
	}

	public Message getMessage() {
		return message;
	}

	public void setMessage(Message message) {
		this.message = message;
	}

	public String execute() throws Exception {
		word="basic interface action";
		message=new Message();
		message.setMessage("implement action");
		message.setName(this.getClass().getName());
		return "success";
	}

}
